package debugs;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import models.AppShopper;

public class AppShopperDebug {
	public static void debug(AppShopper appShopper) {
		System.out.println("Id: " + appShopper.getId());
		System.out.println("Name: " + appShopper.getName());
		System.out.println("Description: " + appShopper.getDescription());
		System.out.println("Category: " + appShopper.getCategory());
		System.out.println("Image: " + appShopper.getImage());
		System.out.println("PriceDrop: " + appShopper.getPriceDrop());
		System.out.println("Price: " + appShopper.getPrice());
		System.out.println("Featured: " + appShopper.getFeatured());
		System.out.println("Rating: " + appShopper.getRating());
		System.out.println("Version: " + appShopper.getVersion());
	}
	
	public static void debugWeb(AppShopper appShopper, HttpServletResponse response) {
		try {
			response.getWriter().println();
			response.getWriter().println("Id: " + appShopper.getId());
			response.getWriter().println("Name: " + appShopper.getName());
			response.getWriter().println("Description: " + appShopper.getDescription());
			response.getWriter().println("Category: " + appShopper.getCategory());
			response.getWriter().println("Image: " + appShopper.getImage());
			response.getWriter().println("PriceDrop: " + appShopper.getPriceDrop());
			response.getWriter().println("Price: " + appShopper.getPrice());
			response.getWriter().println("Featured: " + appShopper.getFeatured());
			response.getWriter().println("Rating: " + appShopper.getRating());
			response.getWriter().println("Version: " + appShopper.getVersion());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
